
/**
 * 
 *   2022/03/01
 *   vuex 使用示例，更多资料请翻阅：https://vuex.vuejs.org/zh/index.html  
 * 
 */



export default
{
  strict: process.env.NODE_ENV !== 'production',
  namespaced: true,
  state: {
    lastEdit: 'editor', // 左边栏
    lastHelp: 'editor', // 左边栏
    poolType: 'editor', // 左边栏
    poolShow: false, // 显示左边栏
  },
  actions: {
    setPoolType(context, poolType) {
      if (poolType === 'help') {
        context.commit("setLastHelpM",poolType)
      }else{
        context.commit("setPoolTypeM", poolType);
      }
    }
  },
  mutations: {
    setLastHelpM(state,poolType) {
      state.lastHelp = poolType
    },
    setPoolTypeM(state,poolType) {
      state.poolType = poolType
    },

  },
  getters:{
    activeElementList() {},
    handleElement() {},
  }

}
